package com.five.mapper;

import com.five.pojo.Interaction;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InteractionMapper {
    /**
     * 根据评论id查询作者回复
     * @param commentId
     * @return
     */
    List<Interaction> selectRepliesByCommentId(@Param("commentId") Long commentId);

    /**
     * 插入作者回复
     * @param interaction
     * @return
     */
    int insert(Interaction interaction);

    /**
     * 删除作者回复
     */
    void deleteInteraction(Long interactionId);
}